
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl;

import java.io.FileNotFoundException;
import java.io.IOException;

/**
 *
 * @author adss1
 */
public class plp1 {

    public static void main(String args[]) throws FileNotFoundException, IOException{
        Token t;
        String ruta = "/home/sempere/NetBeansProjects/pl/src/pl/entrada.txt";//args[0];
        String salida="";
        AnalitzadorSintactic anis;
        try {
            anis = new AnalitzadorSintactic(ruta);
            salida = anis.S();
            if(anis.pirula==112 && anis.pirulaSegura()){
                salida = anis.loSiento();
            }
            System.out.println(salida);
        } catch (Token ex) {
            System.err.println(ex);
        }
    }
}